When there is an error during GDM login or unlock (for example,
typing a wrong password), a text message is shown, but nothing
is said by the screen reader.
This patch fixes this, by notifying any error set in the auth
prompt.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3765>
import Clutter from 'gi://Clutter';
import GLib from 'gi://GLib';
+import Atk from 'gi://Atk';
import GObject from 'gi://GObject';
import Pango from 'gi://Pango';
import Shell from 'gi://Shell';
this._message.remove_all_transitions();
this._message.text = message;
this._message.opacity = 255;
+ this.get_accessible().emit('notification', message, Atk.Live.ASSERTIVE);
} else {
this._message.opacity = 0;
}